import Http from '@/lib/http'

export function queryFilingData (startPage = 1, size = 10, query = {}) {
  return Http.post(
    `/myFiling/queryFilingData?startPage=${startPage}&size=${size}`,
    query,
  )
}

export function dataCount () {
  return Http.post('/myFiling/dataCount')
}

export function queryFilingAuditRecord (id) {
  return Http.get(`/myFiling/queryFilingAuditRecord?filingId=${id}`)
}

export function queryBidFilingAuditRecord (id) {
  return Http.get(`/bid/queryBidFilingAuditRecord?filingId=${id}`)
}

export function associatedInfo (id, status) {
  return Http.get(`/myFiling/associatedInfo?id=${id}&status=${status}`)
}

export function modifyFilingStatus (id) {
  return Http.post('/myFiling/modifyFilingStatus', id)
}
